import http from "@/utils/http"

/**
 * 新增标签
 * @param {*} data 
 * @returns 
 */
export function addBlogTag(data = {}) {
  return http({
    url: 'blogTag',
    method: 'post',
    data
  })
}

/**
 * 查询标签
 * @param {*} data 
 * @returns 
 */
export function getBlogTag(params = {}) {
  return http({
    url: 'blogTag',
    method: 'get',
    params
  })
}

/**
 * 修改标签
 * @param {*} data 
 * @returns 
 */
export function updateBlogTag(data = {}) {
  return http({
    url: 'blogTag',
    method: 'put',
    data
  })
}

/**
 * 删除标签
 * @param {*} data 
 * @returns 
 */
export function deleteBlogTag(id) {
  return http({
    url: `blogTag/${id}`,
    method: 'delete',
  })
}